/*
 * Copyright 2011-2012 Redia A/S
 * 
 * This file is part of Indhold+ for Android.
 *
 *  Redia Library App for Android is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Redia Library App for Android is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with Redia Library App for Android.  If not, see <http://www.gnu.org/licenses/>.
 */
package dk.redia.digiform.model;

import java.util.Map;

public class DigiformRecord {
	
	private String abstractStr;
	private String title;
	private String description;
	private String isbn;
	private String faustId;
	private String type;
	private String date;
	private String uri;
	private String identifier;
	private String publisher;
	private String creator;
	private String language;
	private String shelfMark;
	private String subject;
	private String genre;
	
	public DigiformRecord(Map<String, Object> data) {
		if (data.containsKey("abstract")) {
			setAbstract((String)data.get("abstract"));
		}
		if (data.containsKey("title")) {
			setTitle((String)data.get("title"));
		}
		if (data.containsKey("description")) {
			setDescription((String)data.get("description"));
		}
		if (data.containsKey("isbn")) {
			setIsbn((String)data.get("isbn"));			
		}
		if (data.containsKey("faust")) {
			setFaustId((String)data.get("faust"));
		}
		if (data.containsKey("type")) {
			setType((String)data.get("type"));
		}
		if (data.containsKey("date")) {
			setDate((String)data.get("date"));
		}
		if (data.containsKey("uri")) {
			setUri((String)data.get("uri"));
		}
		if (data.containsKey("identifier")) {
			setIdentifier((String)data.get("identifier"));
		}
		if (data.containsKey("publisher")) {
			setPublisher((String)data.get("publisher"));
		}
		if (data.containsKey("creator")) {
			setCreator((String)data.get("creator"));
		}
		if (data.containsKey("language")) {
			setLanguage((String)data.get("language"));
		}
		if (data.containsKey("shelfMark")) {
			setShelfMark((String)data.get("shelfMark"));
		}
		if (data.containsKey("subject")) {
			setSubject((String)data.get("subject"));
		}
		if (data.containsKey("genre")) {
			setGenre((String)data.get("genre"));
		}
	}

	public String getAbstract() {
		return abstractStr;
	}

	public void setAbstract(String abstractStr) {
		this.abstractStr = abstractStr;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getFaustId() {
		return faustId;
	}

	public void setFaustId(String faustId) {
		this.faustId = faustId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getShelfMark() {
		return shelfMark;
	}

	public void setShelfMark(String shelfMark) {
		this.shelfMark = shelfMark;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}
}
